<?php  

header('Content-Type:text/html;Charset=utf-8');  

$json="[{'avator':'images/pic2.jpg','name':'user1','follow':'1'},
                    {'avator':'images/pic2.jpg','name':'user2','follow':'2'},
                    {'avator':'images/pic2.jpg','name':'user1','follow':'1'},
                    {'avator':'images/pic2.jpg','name':'user2','follow':'2'},
                    {'avator':'images/pic2.jpg','name':'user1','follow':'1'},
                    {'avator':'images/pic2.jpg','name':'user2','follow':'2'},
                    {'avator':'images/pic2.jpg','name':'user3','follow':'1'}]";

$querystr="";

$tokenG="";
$loginNameG="";
$userIdG="";

$tokenP="";
$loginNameP="";
$userIdP="";

if(isset($_GET['token']))
{
	$tokenG=$_GET['token'];
}	
if(isset($_GET['loginName']))
{
	$loginNameG=$_GET['loginName'];
}	
if(isset($_GET['userId']))
{
	$userIdG=$_GET['userId'];
}
 
 if(isset($_POST['token']))
{
	$tokenP=$_POST['token'];
}	
if(isset($_POST['loginName']))
{
	$loginNameP=$_POST['loginName'];
}	
if(isset($_POST['userId']))
{
	$userIdP=$_POST['userId'];
}
 
$json="{" 
."'token_get':'".$tokenG."',"
."'loginName_get':'".$loginNameG."',"
."'userId_get':'".$userIdG."',"
."'token_post':'".$tokenP."',"
."'loginName_post':'".$loginNameP."',"
."'userId_post':'".$userIdP."'}";

echo $json;
//echo $_GET['jsoncallback'] . "(".$json.")"; 